package com.mktravel.thailand.backend

class BlockDisplay {

	// khong can su dung i18n o day
	String name
	String description = ""
	
	String settingDisplay            // settingDisplay = [blockDisplayType1 -> 10]
	String settingRender    		 // settingRender = [viewRender1 -> 10]
	
	String backgroundColor
	String backgroundImageUrl
	
	// vd: "slide show", "text", "google map",..
	String blockDisplayType1
	String blockDisplayType2
	String blockDisplayType3
	String blockDisplayType4
	String blockDisplayType5
	String blockDisplayType6
	String blockDisplayType7
	String blockDisplayType8
	String blockDisplayType9
	String blockDisplayType10
	
	// La path den file template/HTML (danh rieng cho block nay)
	String viewRender1
	String viewRender2
	String viewRender3
	String viewRender4
	String viewRender5
	String viewRender6
	String viewRender7
	String viewRender8
	String viewRender9
	String viewRender10

	
    static constraints = {
		blockDisplayType2 nullable:true
		blockDisplayType3 nullable:true
		blockDisplayType4 nullable:true
		blockDisplayType5 nullable:true
		blockDisplayType6 nullable:true
		blockDisplayType7 nullable:true
		blockDisplayType8 nullable:true
		blockDisplayType9 nullable:true
		blockDisplayType10 nullable:true
		
		viewRender2 nullable:true
		viewRender3 nullable:true
		viewRender4 nullable:true
		viewRender5 nullable:true
		viewRender6 nullable:true
		viewRender7 nullable:true
		viewRender8 nullable:true
		viewRender9 nullable:true
		viewRender10 nullable:true
		
		backgroundColor nullable:true
		backgroundImageUrl nullable:true
    }
}
